import { createApp } from 'vue'
import App from './App.vue'

import "./style/index.scss" // global Style
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' // element plus style
import Store from './store/index'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import "./permission.ts"

// 全局组件
import classic from './layout/classic/index.vue'
import functional from './layout/functional/index.vue'
import top from './layout/top/index.vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.component("classic", classic)
app.component("functional", functional)
app.component("top", top)
app.use(router)
app.use(Store)
app.use(ElementPlus)
app.mount('#app')
